<%--@elvariable id="contractorExposure" type="com.weitu.contractor.entity.ContractorExposure"--%>
<%--@elvariable id="loginUserId" type="java.lang.String"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<%@taglib uri="http://workflowReviewTag.weitu.net" prefix="flow" %>
<!doctype html>
<html lang="zh">
<head>
    <title>承包商曝光台信息添加</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/contractor/contractorExposure/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:180px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
    <a id="btn_submit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-arrow-up fa-lg">提交</a>
</div>
<form id="form1" method="POST">
    <%--@elvariable id="formType" type="java.lang.Integer"--%>
    <c:if test="${param.formType == 1}">
        <div class="information">
            <div class="information-title">
                <p>审批信息</p>
                <a class="panel-down" href="javascript:void(0)">
                    <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                </a>
            </div>
            <div class="cuttle">
                <div>
                    <%--@elvariable id="workItemId" type="java.lang.String"--%>
                    <flow:review requestName="workflowReview" workItemId="${param.workItemId}"/>
                    <input type="hidden" name="workItemId" value="${param.workItemId}">
                    <input type="hidden" name="formType" value="${param.formType}">
                    <input type="hidden" name="businessId" value="${param.businessId}">
                    <input type="hidden" name="state" value="${param.state}">
                    <input type="hidden" name="auditState" value="${param.auditState}">
                </div>
            </div>
        </div>
    </c:if>
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">承包商名称:</label>
                    <input id="contractorAuditName" name="contractorAuditName" value="${contractorExposure.contractorAudit.contractorName}" type="text" style="width:240px;">
                    <input id="contractorAuditId" name="contractorAuditId" value="${contractorExposure.contractorAuditId}" type="hidden" style="width:240px;">
                    <input name="id" value="${contractorExposure.id}" type="hidden" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">曝光开始日期:</label>
                    <input id="exposureStartDate" name="exposureStartDate" class="easyui-datebox" value="${contractorExposure.exposureStartDate}" data-options="required:true,validType:'startDateCompare[\'#exposureEndDate\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">曝光结束日期:</label>
                    <input id="exposureEndDate" name="exposureEndDate" class="easyui-datebox" value="${contractorExposure.exposureEndDate}" data-options="required:true,validType:'endDateCompare[\'#exposureStartDate\']'" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">提请人:</label>
                    <input id="applicantName" name="applicantName" value="${contractorExposure.applicantName}" type="text" style="width:240px;">
                    <input id="applicantId" name="applicantId" value="${contractorExposure.applicantId}" type="hidden" class="hide">
                </div>
                <div class="form_one">
                    <label class="lable-style">提请日期:</label>
                    <input id="applicantDate" name="applicantDate" value="${contractorExposure.applicantDate}" class="easyui-datebox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">曝光原因:</label>
                    <input id="exposureReason" name="exposureReason" type="text" value="${contractorExposure.exposureReason}" class="easyui-textbox"
                           data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">惩罚措施:</label>
                    <input id="punishContent" name="punishContent" type="text" value="${contractorExposure.punishContent}" class="easyui-textbox"
                           data-options="multiline:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="accessoryList" type="java.util.List"--%>
                    <c:if test="${param.state == 'edit'}">
                        <accessory:accessorySimple permission="write" packageKey="contractor_exposure" packageInfos="${accessoryList}" uploadUserId="${loginUserId}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                    </c:if>
                    <c:if test="${param.state == 'view'}">
                        <accessory:accessorySimple packageKey="contractor_exposure" packageInfos="${accessoryList}" uploadUserId="${loginUserId}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                    </c:if>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
